package com.cychat.mall.service;

import com.Cychat.commons.entity.pojo.Orders;
import com.Cychat.commons.entity.pojo.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cychat.mall.params.OneProductOrderParams;
import com.cychat.mall.params.OrdersParams;
import jakarta.validation.Valid;

import java.util.List;

public interface OrdersService extends IService<Orders> {
    List<Orders> listByUserId(Long userId);

    List<String> createOrder(Long userId, @Valid OrdersParams params);

    List<String> createOrderByProductId(Long userId, @Valid OneProductOrderParams params);
}
